Redirect to default page if referer isn't set

Instead of displaying `You should be redirected to <a href=""></a>`
remove a bunch of dead code
A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes
Merge remote-tracking branch 'shish/master'
pass already fetched image object into resize(), rather than passing the ID to be re-fetched
Merge pull request #389 from HungryFeline/patch-1

Redirect to default page if referer isn't set
Merge pull request #393 from shish/resize_tweak

pass already fetched image object into resize()
fix indentation
Merge branch 'linting' of git://github.com/shish/shimmie2 into develop

Conflicts:
	ext/resize/main.php
Merge pull request #397 from jgen/develop

Manual Merge of More Linting #391
Special chars in tags barf filter_var

Due to how FILTER_SANITIZE_STRING works, if you had special chars in
your tags (eg. <3 or !) the string would be cut before the offending
character(s) and in worst case, result in no tags passing to the API
Merge pull request #399 from Diftraku/ouroboros_api

Special chars in tags barf filter_var
Merge branch 'develop' of git@github.com:shish/shimmie2.git into FTAG
click to hide relationships
vote:up quicktag
count("") == 1
Update the gitignore file to exclude operating system detritus and such.
Merge pull request #403 from jgen/gitignore

Update the gitignore file to exclude operating system detritus and such.
Merge pull request #402 from justinbrewer/cloud-patch

Tag Edit Cloud patch
Add <section> tags to the downtime page so that theme render correctly.