refactor(ionicNamespace): create window.ionic

Build processes may also be using the window.ionic object, but it’ll
have to create its own because ionic.js may not have run yet. Use the
existing window.ionic obj if it exists, otherwise create it.