Changed the format of the layers configuration JSON.
Tidied up the way the sample controllers work.
Moved the sending of the request content into the Front Controller.