Fixes #4572 Make code work. Thanks for the report! (please keep feedback coming about HipHop virtual machine! that's super interesting :))
Fixes #4580 - Make sure users editing / deleting segments have enough permission to do so (either Super User, or the user who created the segment)