Fixed texture reloading issue.

Also fixed texture loading listener cleanup.
Updated version number.
Safety check in mouse events.

Sometimes moving the mouse just after refreshing caused an error.
Merge branch 'dev'