minor changes 

outsourced some functions from goxapi.py into util modules to make goxapi shorter. more of this later if ok.