Added gateway abstract and tests.
Added set and get support to collection class.