Refactored APIClient

APIClient is now an interface with the logic moved to MersonClient in
MersonServerLib.