improved variable validation
explizit cast toString
Merge branch 'master' of https://github.com/happn/server