WIP: Copay Shell Integration 2

**This PR is a work in progress - only opened for visibility and discussion purposes for now.**

Initially this fixes the reference error when running Copay outside of Copay Shell.