Final touches on the start/stop problems

Figured out that the problem was a ranch bug.

Also, made sure piqi_rpc_http (i.e. cowboy) is always in sync with piqi_rpc
server even if it crashes and restarts.