move facetInit and middleware instantiation to FacetCore
Merge branch 'master' of https://github.com/facet/core

Conflicts:
	lib/api-core.js