Implemented a REST approach

The server only executes methods and all the rest is processed by the
browser.