Hacking to simplify URLs

1. Moved main body into a function.
2. Moved function definitions around to support top-down reading order.
3. (Most important) Added option to URL handling: if the URL provided doesn't start with 'http', assume it's just the list name, and format to pull from software-carpentry.org. Yes, this makes the script less general, but it's useful for us.