Merge pull request #194 from hrysd/has-secure-password

Use has_secure_password function
Use Sinatra::Namespace.

and move helper function.