setting up v1 and v2 api versions. marking legacy controllers as deprecated