Make the UI behave as expected when an image rating is changed

 When an image rating is changed and it gets out of the current collection the
 current behaviour was not consistent, depending if the image selected was the
 one being changed or not.
Fixed up/down arrow keys in fullscreen preview mode and made left/right arrow keys work the same way. Also implemented the "center scroll" function, which realigns the images with the grid so there is no empty space in front of the first image.
Fixed two bugs concerning keyboard shortcuts for zoomin slider tool in lighttable, which would prevent any images from being shown (offset went outside valid range).
Moving the realign to grid functionality from the center scroll shortcut/key accelerator to a new one. This commit does it in the non-legacy way.