Updates code to work with current and future products.

- moves $layers to utils
- allows option in utils() to set a namespace and determine whether
you want a class based system or an extension-style palceholder
system