Changes to remove crappy editors Wordpress tries to inflict and modifies gallery output to be correct with variable videos.