Merge pull request #60 from alexanderson/master

Merged changes and changed db query for agg sql
Fixed bizarre bug in rest_ui
Updating jQuery
Merge pull request #61 from dannybutler/master

Fixed bizarre bug in rest_ui
fixed single sql agg.