Initial code drop

First revision of client