mod_register_json: major code refactor (Fixes #70)...
- Cleanup and reorganize code
- Add handling for self user password resets
- Split handlers and add a pre-processor for main POST requests
- Reorganize templates and add new ones
mod_register_json: add missing parenthesis.
mod_register_json: correct typo.
mod_register_json: fix template POST url gsub pattern.
mod_register_json: add final trailing slash to pattern.
mod_register_json: change password reset templates' filename prefix.
mod_register_json: fix traceback.
mod_register_json: reorganize code and fix traceback.
mod_register_json: fix typo.
mod_register_json: the final handlers are supposed to be returned...
mod_register_json: rectify wrong input types on the password reset form template.