Make VegaHub a class library and move the sample code to a script file.