Integrate Backbone to the client side.

- Move the contract to its own namespace
- Move the public JS inside the serverside view