Added the Python logging module

Here's the full logging overhaul. The combined experience of those much smarter than us is now at our disposal!

This is a continuation of #446.

I've run it through a fresh install of ST3 and it retains all the old behaviour with debugging off.

Cheers!