First stabs at porting from martini to gin. WIP.