fixes #2257
fix #2237 for webm and flash
Change automatic tags to be added before aliases/implications

This allows aliases and implications to work on tags added automatically
#2245 Display more of title

originally from commit 719343cea5876b4efec2292cb77747ade20cc13c
#2261: fix source redirection, fix pixiv_id parsing
fixes #2249
#2245 add search form
fixes #2241
#2261 source redirection and pixiv_id for thumbnails