Global error handling for 401.
Merge pull request #43 from fotavo/session

Global error handling for 401.