Pretty print mount.json when possible

I'm tired of having to look at unformatted mount.json when debugging and some admins might be frustrated as well.

So here, this will pretty print the mount.json on write.
Only works for PHP >= 5.4

Please review @DeepDiver1975 @bantu @karlitschek @icewind1991