This allows the cli to be initialized with a (custom) API client. Currently to be used for unit tests, but could be used for other scenarios. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>