Reorganize module to make gateway-release module aggregate the classes for release builds.
Moved functional tests out to a separate module so they could depend on gateway-release.