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).
Oh right, I missed the fact that this is for app repo.