using byte isntead of unicode to allow for compatibility across versions for flask.login and hmac
Added '_', '-' and '.' to valid charectors in username
Fixed error handling issues during registration
[Issue #75] Fixed md5 usage in signature generation. Fixed test case to use content_type parameter.