Fixed issue with Mutex where success call wasn't being run if the critical took more than one attempt to enter

Added logging with configurable log levels via log4javascript
Fixed issue with Mutex where success call wasn't being run if the critical took more than one attempt to enter

Added logging with configurable log levels via log4javascript