Added standalone client. Refactored common standalone classes to own module.