Substituted gapi2 with new code from 0.11-DEV, imported geni error codes, still minor changes to gapi2 needed to reuse code in legexpapi