Added user model. Support user registration, login, logout now.