fixed references and pointers, added a submodule for rapidjson, tested logins, fixed all errors and warnings