Added pre_upgrade_actions, turn on upload_images, fixed stub for migrations