Added support for external weaveApiReady() function which gets called as
soon as the API is ready, before any session state is loaded.
Moved WeavePath.js to WeaveAPI project.