Store user obj

This adds a config option on whether to store the user to the session as a serialized object (default) or an id. It's needed if your user entity has associations, as with doctrine.