allow logging of exceptions in API handlers to screen/file
Merge pull request #16 from xnova/master

allow logging of exceptions in API handlers to screen/file