Removed obsolete user model.
Extended JS API.