Add custom remote method definitions

/to @raymondfeng 
/cc @seanbrookes