Improve Dependancy Chains in Rakefile

Adds proper dependancy handling to the documentation and gemfile
generation in the Rakefile.

Fixes #13