url_for() static urls in templates
try block to clean up failed uploads
Merge branch 'dbfail'

cleanup on failed uploads