Fixes for storage pool creation and base box uploads

This fixes #278 and other problems I discovered which are discussed there.

cc @inercia