Feature/custom remote

/to @bajtos @seanbrookes 

This adds REST APIs for custom methods.