move embark api client code into its own package move embark api client code into its own package remove unused dependencies fix linting