New guard plan - update guard state when a circuit fails/succeeds

New guard plan summarized at https://lists.torproject.org/pipermail/tor-dev/2016-July/011234.html

  1. Update guard state when a circuit fails/succeeds
  • Section ON_FAIL and ON_SUCCESS
  • See entry_guard_register_connect_status()
  • Unittest