Cache ia requests in memcache for a minute.

All the ia requests related to loans are cached in memcache for a
minute. The data is always updated whenever the borrow page or loans
page is visited.
Made the logout link to logout the user from both OL and IA.