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 @emanuele45 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.

@eurich I think this https://github.com/Spuds/Elkarte/commit/b2fafa31bd7d7aa7fb66a0f4634472c58724a3ba was the cause of missing avatars when behind the proxy, when its on the site we can test again.