Move sinatra app to separate file
Fix #15: Show "API down" when API returns HTTP 500