Added mongoose models, user device reg. (partly)