Deprecation and directory environments

 - Removed deprecated settings for templatedir, modulepath, and
manifest.
 - Added support for directory environments