Fix several bugs as noted in the comments

fixes #1068
fixes #1070

removed remaining (that I could find) text/javascript and text/css as that is not needed

updated a couple of the sortable functions to use the href, I added that some time back but forgot to update a couple of functions.  Its purpose is when an error occurs, it redirects to the page, thus forcing the display to reflect whats in the db (otherwise you would still see where you dragged an item, even though it failed)

Added some code to update the notification menu counter @emaneule45 please take a look at that and let me know if I messed up.  It should update the counter more regularly than what we have today.  Also the counter should no long flip when toggling between all and unread from the notification screen.