Implement simple encoded storage in gateway
Merge pull request #111 from harshavardhana/pr_out_implement_simple_encoded_storage_in_gateway