Adds support for properly rotating/flipping beds.

This commit allows for bed blocks to have their data values rotated during clipboard operations.

(resubmitted due to a messed up commit history)