split out into a client module

Signed-off-by: Jody Garnett <jody.garnett@gmail.com>
include client module in application

Signed-off-by: Jody Garnett <jody.garnett@gmail.com>