json api

created json endpts for products and categories. using the active model serializers gem with gem 4.2.0beta2 and it ain't easy.