Adds an api client for use throughout

Signed-off-by: Oren Leiman <oleiman@neutral.io>
Updates nio-instance to use the NIOClient class for api requests. Small changes for NIO v1.2 (commands broken...)

Signed-off-by: Oren Leiman <oleiman@neutral.io>