Added dashboard backend support for adding queries without specifying is_grouped, added views for creating and deleting queries.
Bugfixes in display code, implemented add/remove query functionality, added chart legend colors to table.