Adds custom task to generate the APIConstants file

- do not commit the ApiConstants file to scm
- gradle clean generateSources will make it (for now)