replacing webapp with REST API

Will use AngularJS for web app later.