Finish file upload work; expire posts; cleanup

Display the uploaded file in the post listing. Expire posts that are
past their expiration date. Email users when posts are going to expire
soon. Remove unused code. Fix a few minor bugs.