drop RPC in web server and move to angularjs

- Main.hs no longer cares about the RPC contents. Forwards RPC to R directly
- Drop jquery-style webapp to AngularJS style