Added entity cloning and a bug fix exposed by it
Implemented delete of timeblocks