I want to do things in a REST style manner; using jQuery or AngularJS (or maybe something else); passing around JSON. How can I do that? Where to put my JS code? Where to define my server method (controller/action or any other convention that is there in Xibo)?