Support auto-completion.

Update to @OriPekelman's #87 

With this, you can add:
```
platform _completion --generate-hook --program platform | source /dev/stdin
```
to your `.bash_profile`, `.bashrc` or `.zshrc`
I suspect this isn't going to work in PHP 5.3, I'll fix it