Starting the great reorganization

Imports were not fixed, or fixed really badly.
The great reorg takes another turn
Fix a lot of imports

Only tested with examples/decode.py
Use err_check
LibError extends RuntimeError; shuffle imports
AVError extends EnvironmentError; start testing

This is much more like IOError or OSError.
Setup Travis to run actual tests