Adding oauth2 options
big refactor
Create user ID if not present on save
Fix bug with type assertion
support JSON rendering