move CI scripts out of the bin/ directory

the idea is that the CI setup might contain other files besides
executables
move dev dependencies after regular dependencies
Added Behat tests for term generate command
Merge remote-tracking branch 'upstream/master'