I rewrote powerline-bash in javascript. Not yet complete.

Doesn't handle having the shell passed in or last error state.
(Defaults to zsh). No mercurial support yet. svn support has a
bug that I suspect is in the original python version.