Added docstrings.
Rewrote Link constructor to facilitate removing the (ugly) make_link_from_database_row method.
Simplified prettytitle method.
Minor tidy ups.
Use prettytitle method in link view template.
Handle non-existent link ids gracefully by returning a 404.
Handle non-existent tags gracefully.