Fixes an issue where re-generate doesn't upload to cocoadocs

Closes #48
Use File.join to join two paths
Correctly check of a path ends with .podspec

Current behaviour would match .podspec within any part of the path
Remove trailing whitespace
Don't delete docset if we're running locally
Fixes an issue finding documentation in the 'doc' command
Refactor generation providing document_spec_with_name
Fixes a file descriptor leak when generating documentation

This also uses CocoaPod's API for reading from file
[doc] Correctly find the "latest" podspec #69
Add a reploy latest version endpoint #116
Fix images in GitHub READMEs.

* Use raw. URLs instead of /blob
* Fix img src as well, not just a href
Merge pull request #123 from neonichu/fix-readme-imgs

Fix images in GitHub READMEs.
Make sure https links are getting mangled.
Use https for GH links.
Merge pull request #124 from neonichu/fix-readme-imgs

Fix readme imgs
add support for generating latest podspec
actually make days work again
Decode query string from URI

Fixes #133
Actually decode the correct string

Really fixes #133
Add constants to hierarchy and index HTML templates.