Added better traceroute file sniffing

Added code to help find the traceroute which seems to be a problem for
a user. Also optimized code at the bottom for removing a lock file.
Replaced it wit a cleanup() command.
Trapping for uname & single API call for upload

Uploads from cron are now passed as a single bundle, easing the load on
the API, and allowing more uploads with the same hardware.