Moving api

first step in moving the api away from the view functions, later the
views might be completely removed and handled by static pages.
API: /stat -> /status
Remove old API from views