Cleaned up some of the code for the serve functions in anon-files.