ensure clearing http connection when stream is down
add new parameter `count' to memberships/json