Set API version feature

Added a way to set API version to use. Can be usefull for the 'city' profile field, for example. Its structure was changed in v5.8.