Initial code (gearmand)

@ppp0 @kris-lab let's discuss - I'll give you an intro.