I've got the solution. You can intercept the request using the $httpProvider.interceptors following the Session recoverer example under this link:
http://www.webdeveasy.com/interceptors-in-angularjs-and-useful-examples/
This will work perfectly with restangular (it will be transparent from restangular and the rest of your code).