remove old versions based on a keep_version_count attribute

@NicholasDAllen @mtrahan can you look the code to remove old versions of gearbox apps