Use get_api_key() to fetch Galaxy API key...

This is a more appropriate abstraction layer to work at and provides the added benefit of auto-generating the key if it doesn't exist.