Split up Java API and AngularJS frontend