Tried to improve source lookup by filename. Added a file extension whitelist.
Replaced custom functions with those built into Middleman. Better support for directory indexes and relative links.