Separated lib and prompt filter

This way the repo can also be used as a dependency in cmder
where there is some extra stuff to be done before it can be added
to the prompt

Somehow github did not recognize my moving, despite I `git mv`. So the diff looks bit messed up. Sorry for that.