refactored Autoloader; added support for json encoded format for environment "hosts" option