Alphabetize functions and objects in modules

Clean up the source code ordering of the log, main, ssh, tasks and utils
modules in an attempt to make it easier for future maintainers to find
things the code base.

Change-Id: I8b8ccadbbea0c956bad62d0e2de91493de11a7f4