proper logout
host independent js
user model
register