bugfix controller invocation with empty URL path info
Added config.debug flag, improved router