TDS-24 Allow auto-registration of new patients the first time they try to log in via the mobile API
Merged TDS-24 fix into master branch.