Added new cloud function for resetting passwords. Closes #2