Add transition action to save on publish. Don't try to generate on pre-get-shortlink add get_shortlink action to generate. Try to do all processing in create function. Minor cleanup