Refactored to use more generic bindMethod() function.
Merge pull request #57 from cederberg/refactor_bind_method

Refactored to use more generic bindMethod() function.
Simplified the log level name <--> number lookup in a few places.