distributor versioning - adding versioning to the api

and a little bit of clean up on the UI side