update grunt env for api, added Router structure in API, added API to CORE as reference, improved integration spec (root spec)