Initial tests for setup_db
Refactor setup_db.

* Abstract schema at module level.
* Remove unused `remove_db`.
* Remove unused `main` suite.
* Use `with` aggressively.
* Import modules, not names; simplify imports.
fix default debug level in usage output

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
add custom logging level DATADUMP=5

also:

- change one log output to datadump as example
- rename some logger objects for consistency

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
Merge pull request #863 from benemorius/loglevel-datadump

add custom logging level DATADUMP=5
Sign then Encrypt
Convert to cryptor objects
Add GUID to CryptoPeerListener
Access data first element
Cleanup Fixes

- Convert old methods to Cryptor objects
- Remove old debugging statements that crept in somehow

Various fixes

- Remove compression
- Revert asserts
- Implement GUIDMixin specificity
- Remove dupe code
Remove unused zlib
_on_raw_message cleanup

Readjusted the organization of the method.

Fix on_order messup

Remove unused seed_contract_json

This was originally logged for convenience but it's unnecessary work.

Remove unused seed_contract
Remove zlib from requirements
Refactor _on_raw_message

Fixes

- Make is_handshake static method
- remove unreference to exception
add is_handshake test
Remove unnecessary logging due to security concerns

Handle TypeError

Make test data serialized

Make validate_signature static method
Add validate_signature test method
Line length issue

Line length still incorrect
Enable newline check.

* The check was accidentally deactivated in a29793a5.
Merge pull request #839 from hoffmabc/signing-encrypting

Sign then Encrypt