Fix socket tests
Fix cython warnings
Fix "OverflowError: value too large to convert to int" error
First pass at adding travis-ci testing