Add partial loop playback feature (In/Out position) using events

This commit adds the possibility for the user to set the In (Shift+I) and the Out (Shift+O) positions for a looping playback. It also adds the loop playback icon to the toolbar.