TDD of the /layers/ api.

Working on getting the REST API to work.