Check if an alternative filename was submitted and uses it for the filename

This will check if the filename field in the $_POST is not empty. If it
is empty, use the image name from $_FILES
Merge pull request #64 from squeevey/develop

Check if an alternative filename was submitted and uses it for the filename

Reviewed-by: numist
[minor] comment style.

For https://github.com/numist/this-might-be-offensive/pull/64
[minor] code style.

For https://github.com/numist/this-might-be-offensive/pull/64
JSON API requests should respond with a JSON content type header.
Merge branch 'develop' of github.com:numist/this-might-be-offensive into develop
Coerce number types for seralized uploads.
Merge branch 'testing' into develop
Merge branch 'testing' of github.com:numist/this-might-be-offensive into testing
Revert "Revert "Merge branch 'realtime_push' into develop""

This reverts commit 2c3358a2a94961a90f987758b7e4bd558a9b8562.
Resolve realtime deps with package manager
New MySQL connection methods
Realtime Subscription Updates
Clear subs if comment is visible

- Also color subs correctly
Review feedback
https://github.com/numist/this-might-be-offensive/commit/409bbe538a83f4e1f83e7f7aeb90419f638239fd#commitcomment-2235991
Sub updates should always match the broadcast
Merge branch 'testing'
Darklaunch for realtime functions
Fix background color for master
Stop using SERVER_NAME where I meant to use HTTP_HOST.
Actually, did HTTP_HOST even exist when this code was first written?