Store results in SQLite databases

- One table for each resultset
- Implement JSON output format
- Use separate status call for status check, rather than rely
  on 404s
- Stop trying to measure query execution time for now. It was
  completely bogus as currently implemented anyway
- Display output with DataTables!
- Store metadata about a query run in extra_info column as JSON
- Don't make db request for user_id unless required
- Replace swig with nunjucks precompiled templates
- Minor CSS style fixes to the area under the code
- Display status messages even for running and queued states

Change-Id: Ic60561215c16a726406eb2f17eea8c3647b5f8b7