Updated mouse handling to allow dragging.
Remove application* from gitignore.