titaniumsdk: Added version 3.1 next to version 2.1, and make it configurable