Added preference to enable/disable logging.
Implemented custom logging method. log() should be used instead of
direct call to XposedBridge.log()