Make installation more robust:
- Need to wait for end() to finish otherwise the file may not be completely written to disk yet.
- Catch errors when writing.
Fix uploader broken by iron-router change. Also delete some vestigial log statements.