nginx startup: mkdir -p /var/log/nginx

nginx will error out if it tries to start up and /var/log/nginx isn't there
Ensure /shared/log/rails is owned by discourse user
Merge pull request #75 from Supermathie/master

add a few preflight checks