replace referer redirects with paths to actual page
Redirecting to HTTP_REFERER can result in infinite loops
in conjunction with login/authentication views when
session expired
don't allow empty POSTs - they erase all data

Empty POSTs are a result of submitting the form
when session is expired; redirect from login form
does not resubmit the data and the empty POST
request deleted all the resources
Merge pull request #13 from mihneasim/master

Properly handle redirections