add --deploy option to rebuildstaging

runs preindex and deploy to staging if rebuildstaging goes through