Added ghc-prim for compatibility with GHC 7.4.
Skeleton for Api.Api module.
Refactoring.