Merge branch 'release/0.4.0.0'
Use different user.construct_public_followings_sql query depending on database backend.
This is done for performance reasons as a temporary fix for problems with 0.4.0.0 on MySQL. This madness is explained in issue https://github.com/diaspora/diaspora/issues/5014.

(cherry picked from commit 80075c13f4e45de4a1cc7b305b213ee693c66619)
Bump to 0.4.0.1
Merge branch 'hotfix/0.4.0.1' into develop

Conflicts:
	Changelog.md
	config/defaults.yml