Use Domain instead of Namespace in specs

Issue #1199

When we move to GIT a domain woud be a separate repository and will
be distinct from Namespaces. In the Postgres the Domain and Namespace
are stored in the same table.
The specs were changed to count namespaces separately from domains.
Merge pull request #1216 from mkanoor/namespace_to_domain

Use Domain instead of Namespace in specs