Add Gemfile and move files to lib and spec directories