Allow dispatch functions to return a resource map to be formatted
Split up session storage from authentication