adding user storage methods to user, with tests

@AndreasKlein, look ok?