Major media bugfix, enhanced pre and gist shortcodes