Fix account creation and login
Return error if account already exists
Device creation changes

- Generate / store secret key
- Allow session-based auth