don't require active record until an AR adapter is initialized so that the gem can be used in projects that don't include it
include metadata/statesman_metadata alias in generator - needed because mongoid doesn't allow field name 'metadata'