Complete Rework of the Test Suite

This is a complete reworking of the test suite. 

It includes a Vagrant based resettable mail server for testing against as well as Travis-CI scripts for deploying Dovecot, with preset email.

It also includes a lot more test coverage, going from essentially no testing to over 80% code coverage by line.