Add spawn change management to PlayerBedLeaveEvent. Adds BUKKIT-1917

Split from GlowstoneMC/Glowkit#3
Original Bukkit PR: Bukkit/Bukkit#785
Additional changes: None
Glowstone implementation: Not done

-----

Previously it was not possible to change where the player spawned upon
leaving a bed. This commit changes that.