respect limits when truncating URLs

Closes #248

Also modify pod for render_related_url to match 40-character limit in code [closes #249]
Merge pull request #251 from QUTlib/20140725-truncate_urls

respect limits when truncating URLs