Moved file extension related code into lib/utils.py
Added function to find a file's destination relative path.
Adjustments after moving ext stuff into lib/utils.py
Added atom:link tag with self url to rss feed.