Refactoring: unified mouse/stylus event handlers
Save only non-default shortcuts
Add MessagePtr type info

This is needed to actually make QList<MessagePtr> space efficient.
Add more typeinfo declarations