Project Class: add method to check if repo is supported

Clean up code in l10n-init, remove duplicated code in checkvariables, add tests for new method.