Simplify dependencies

As discussed on development list, this PR removes Rails dependency and make the gems works simple ruby file.