Add factory function for getting the local client

Reads in from the confir and returns the correct client