Ported item and block to scala.

Moved container related things to core.