fixed issues with sorting by changing the active tasks algorithm into db...

... queries instead of template tags, cleaned up table template, added messages framework to taskrabbit