Option to search and replace image URLs
so path to images can be set to the repository.

(Blog and Post now accept an options parameter)

Fix getFile() bug if body comes back as undefined
plus add tests.