Implemented regular rails ajax callbacks on POST to rails server

I reimplemented the rails server POST to trigger the ajax:* callbacks.

This should not break existing functionality, since these callbacks were never triggered before.  However, now you can examine and act on data returned by the server from this call.