Setup QueryRun model and API endpoints

* Setup QueryRun model
* Add endpoint that submits a QueryRun
* Setup constants for the different statuses

Change-Id: If3a14025cd88c707972f4137c153dda3d3261596