Working VAS module

Tested and workding on EL5, EL6 and Solaris. 

Still a few things that could be improved, like the join-part for example. But I don't have a solution for that today.