Add check for security context so that layout is usable in 404 error.
Add 404 page which extends Sylius layout
Merge pull request #974 from Richtermeister/fix-404-user

Add checks for security context so that layout is usable for 404 error page.
Initial routing for the api
Refactoring of the resource bundle controller
Introduce domain manager and restore the ability to cancel action
Remove backup file
Fix reported typos
Fix the history action for product controller
Fix the configuration for the locale resource
Fix product controller & delete action
Set the request on every controller use
Revert the removal of resource name from 404 exception
Revert "Initial routing for the api"

This reverts commit f1fbb8b086a8eb072ce09ce92eca627043829885.

Conflicts:

	src/Sylius/Bundle/AddressingBundle/Resources/config/serializer/Model.Address.yml
	src/Sylius/Bundle/AddressingBundle/Resources/config/serializer/Model.Province.yml
	src/Sylius/Bundle/AddressingBundle/Resources/config/serializer/Model.Zone.yml
	src/Sylius/Bundle/PaymentsBundle/Resources/config/serializer/Model.Payment.yml
	src/Sylius/Bundle/PaymentsBundle/Resources/config/serializer/Model.PaymentMethod.yml
	src/Sylius/Bundle/ResourceBundle/Controller/ResourceController.php
Fix missed conflicts
Remove serializer mappings (out of scope)
Update .gitignore
Introduce basic factory support
Add ability to access the properties of newly created object
Fix the criteria bug and simpler confirmation handling