Basic bulk create and bulk update

Just the bulk create and bulk update parts of #727.