Fixed minor issues on: UserData Git, SendEmails static ctor,
ReAdded (with some new checks) code to test hosted REST (these usually fail in TeamCity due to lack of permission to bind a local port)