Configurable auth storage system

This makes it possible to choose where you want to store the current
users logged in details. Either in localStorage, or in memory.