Fixes issue where server exception would occur if someone tried to register with an email already in the DB

Fixes #1

Also:
1) Merges registerBusinessUser() and createBusinessUser() into one
function that has different behaviour if it's a POST or a GET request
2) Convert the UsertypeMasks into an enum class.