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).
This file *should* be committed in applications though.