Better concatenation of relative urls (../img.jpg)

Allows "../../logo.jpg" to be properly concatenated with http://example.com/articles/about.html
Before: http://example.com/articles/about.html../../logo.jpg
After: http://example.com/logo.jpg
Remove leading and trailing whitespace from src

Fixes #8
Merge branch 'better-relative-url-concatenation'