Apply patch from pm at datasphere dot ch for PHP 5.4 compatibility
Clean up whitespace
Add .gitignore