Basic unittests for profiles API and resource fix
* Basic unittest for get/post/put/detele
* In resource has been added foreign key to 'self' (inviter field)