Implemented create/drop.
Added support for refs.