Removed all reference to global state

The project atom and env var had state from the external environment.
That is now all passed in during component creation.