Port publish_values_method to class
Add GetSubscriptionsMethod template

 - Rename 'add' to 'publish-values'
 - Remove debugging from JSONRPCServer.register_function
Fix testAuthorizationFailure