Login and Logout do not redirect to homepage.

Fixes #122
Added correct link to WMS GetCaps in layer group publishing, fixes #141
Better errors handling in upload js
Merge branch 'master' of https://github.com/GeoNode/geonode
Better support for different types of errors in javascript upload code