[refactor]move codes out of the step_definition file

Note: move domain class to lib/, and require them in
/features/support/env.rb(the first file to load when cucumber runs);
move Transform out to features/support/transforms.rb;
move world_extensions to /support/world_extensions.rb