refactored rep nats server and client to use ifrit

Signed-off-by: Momchil Atanasov <m.momchil@gmail.com>