added redirect, flash and user signup

Added the ability for users to register, and the ability to display
flash messages.

Also added the ability to redirect to a page