only generate the certificate if needed
improve compatibility with ruby 1.8.7
patch to avoid nginx cookbook bug COOK-4237
added package php5-json needed on ubuntu 13
patch to avoid 502 Bad Gateway error when running setup (detected on ubuntu 13.10 + php-fpm)
replaced deprecated settings on Vagrantfile (fixes #6)