Add mega.nz support
https://github.com/MultiPoolMiner/MultiPoolMiner/blob/ad2784e8684240d6d7bee71cef6dcc67dd89d104/Include.psm1#L1192

Written in C#; looks hopefull: 
https://github.com/gpailler/MegaApiClient