Moving EntityManager out of templates

This is the first step in writing the framework part of Slickr.
The idea is to eventually have something comparable to Rails. A project
generator as well as framework, but for developing games.