fixes #252 When receiving a 401 from rest requests, prompt for login

Then refresh the current route after login or logout succeeds.