Add a "doc" task to Rakefile.

Also set up .gitignore to ignore the doc directory which is created when
you do:

    bundle exec rake doc