System hooks API.
Merge pull request #3156 from m4tthumphrey/api-system-hooks

Added methods to manage system hooks from API