Refactoring: added gw_utils module

Moved some methods to gw_utils script and prefixed private methods with
_ on gw script