Added support for bundler, extracted common command building logic.
added Gemfile