Move docs into doc dir.
Fix bug in pin setup if curl not installed.
Add OSX support for travis-ci.
Add some more TODO ideas.