user+unit test

* user profile improvements
* db improvements
* gravitar implementation
* db fixes
* bug fixes
* unit tests