Add log levels to the Debug class

I'm using bit-flags for this (which should be pretty standard)
Add default logging settings

I realize there's a duplication here for loading the Debug
class, I'll probably sort that out later.
Add tracing level logging for function entry points
Create an info-level log entry for script run time