Code refactoring
Added more plugin hooks
Added proxy auth plugin example (dev)