Prepare for ci

* rakefile and gemfile to support linting.
* support automatic versioning by teamcity.
* passes linting.

successful build:  

http://teamcity.hq.daptiv.com/viewLog.html?buildId=322899&tab=buildResultsDiv&buildTypeId=bt1605