Populate .gitignore with more files

Shouldn't `composer.lock` and `logs` be on `.gitignore`?

Also, previous versions of CakePHP had the "IDE" and "OS" parts which I pasted here (adding `*.sublime-*` for sublime dotfiles).