Implemented snap to grid

- Added variable snap_to_grid and grid_separation to ui.
- Added menu option Snap to Gri_d
- Added variable snap_separation to config
- snap_to_grip defaults to false (it can't be saved)