Added a request counter to API
modified host property to use a default if you set null host

Signed-off-by: Martin Evans <martindevans@gmail.com>