versioning and publishing

Versioning and publishing system implemented as it is in Gluttonberg core 3.0