Properly hook grid into the model items

Loading items does not associate them with a grid! This will lead to misplacment after rotation or flipping.
Add item_data_snap, remove dead code chunks
Remove overlapping signal "changed" or wire and item-data
Properly unregister items on removal

Due to a missing unregister call, connection dots would remain.
Also fixes a bunch of warnings and whitespaces errors