Add unpersist support for HTTP broadcast

This also involves some style fixes and refactoring.