Use code generated client for Versions and Code Controller

Also remove the generated models classes from API - we should not code generate anything inside api project