Moved to the maven tree, added unit tests and did some yak shaving

1. Moved the sources and resources to their respective position in the maven tree for more compliance.
2. Pulled the smtp and http server into their own classes.
3. Added unit tests for the mail and mailqueue classes.
4. Did some cleanup and other yak shaving.
![yak](https://f.cloud.github.com/assets/106844/99817/c6ed8c40-67c4-11e2-9b72-8c630758f6fa.jpg)