Separated lib and prompt filterq

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
Move module require inside prompt filter

This is required otherwise clink will only work to print out the prompt
on the first attempt. Subsequent attempts will see git_prompt set to nil.