Refactored logging, replying, and formatting

Pulled log formats out to llb.cfg for easier construction. Logging
strings now easier to parse.

Reply construction pulled out into a format string.

Pulled base behavior into its own function, will clarify the main loop
for new functionality.

Switched function comments to docstrings, and trying to match PEP8
through the file