Completed migration to websockets

Minute.py works fine now. also started to write low level IO functions