Alex/fix rake doc

Adds minor fixes and repairs documentation.

Fixes broken documentation generation after sandboxing. Adds test for documentation generation. Fixed minor RST warnings. Fixes launchy not working with Dir.chdir. Fixes broken imports after sandboxing.

@ned please review.