Reset emulate call:

- only emulate -L causes options to be restore after function call
- using setopt outside of functions does not reintroduce #342
Add __contains__ method

Fixes #471
decode takes no keyword arguments in python-2.6
Always return true in install.sh
Fix typo in scripts/powerline