MouseInput and logger work

Enhanced logger to set min level of logpriority to get logged to sysout.
Fixed so mouse capture works and bugs in mouse listener.