Fixed a small bug with Term SQL query
Merge branch 'master' of github.com:sparks/rter
Incremental improvements for ranking

Got the callbacks working for ui-sortable so that we can now
sendout the ranking after a drag/sort event.

Some cleanup of comments etc