Fixed member profile and registration page.
Various tidy and improvement.

Added some test stubs.