Added email library.
Refactored message into its own file.
Refactored out address related functions.
Applied formatting standards, added licenses.
Refactored comments.