Extract modules to Gemfile.

Support using bundler, etc.
Add gitignore for lock file.