Directory restructure.

Move all source files to source directory.  Also add a bin directory for
executables.
A few odd fixes so registration works.

Emails are still not being sent, but at least doing so is optional now.