Introduce a remote_devise API

Merge in just remote_devise.rb changes

Switched to using a JSON POST request. Also improved robustness of querying code by adding an appropriate 'Accept' header to the request and an error to handle problems with HTTP 406 Not Acceptable.
Merge branch 'remotedevise' of https://github.com/atyndall/rubycas-server into remotedevise