Move the libs to the _gem_ directory

PR 478 did not write the libs to correct directories.  There
were not tests in place to catch this.  Now there are.
Install json before ci tests

json is not always available on Travis CI.
Merge pull request #479 from calabash/feature/fix-rakefile-broken-by-478

fix rake build_server: broken by 478