Add automatic tests

Some currently fail due to small bugs.
Fix the -tlsv1 flag handling

The testcase now passes.
Fix case when TLS_INTERPOSER_OPTIONS is undefined but CIPHERS is defined

All tests passing.
Merge pull request #10 from scintill/tests

Add tests and fix some small bugs they uncovered