move more things to zvshlib

preparation for tests, need to move more things to module
Merge pull request #44 from pkit/refactor

move more things from zvsh script to zvshlib package