Introduce nginx backend
daemon.rb: Use new add_public_endpoint event

Use the new add_public_endpoint and remove_public_endpoint events
instead of the deprecated add_gear and delete_gear events, which are
being removed in OpenShift Origin 4 and OpenShift Enterprise 2.2.
daemon.rb: Silence some warnings with parentheses