Bugfixes, small improvements and fixing php-fpm for ubuntu 1404