Changed
#289: improved error response from hooks
#305: remove restriction on environment settings. Use any environment name and configuration file, rather than only "development", "qa", "production", "test"
#306: fix reference field composition when value is an empty array