Add version attribute to the main class

This will help with sites to stage version upgrades with the same code.