Add idle_connection_count and pending_request_count as behaviour functions
Fix handle_pending_request/6 callback spec error