Move readlines function to powerline.lib.shell
Add documentation for powerline.lib.shell.run_cmd
Explicitly specify shell=False when using powerline.lib.shell.run_cmd
Incorporate Windows hack found by @kovidgoyal

Ref #36
Fixes #498
Merge pull request #897 from ZyX-I/shell

Shell: some refactoring and Windows hack