separate the endpoints for API versus application routes

- use /api/ prefix for API endpoints
- match all other endpoints and redirect to index and use the Backbone
  router from there