BG Queue Fixes & +++

Fixed issue where players would be able to join a ongoing game when queueing by meeting the criteria.
Fixed/Implemented the maximum_afk_seconds setting.
Fixed issue with the maxPlayers arena setting that'd cause the maximum to be less than specified.
Added a new battlegrounds.conf setting "allowedTypes" for arenas in order for further customisation.
Expect a few more soon.
Special Thanks to AnnieRuru

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Fix various documentation bugs

Fix certain type of bonus can actually trigger with weapon skills
http://hercules.ws/board/tracker/issue-7897-bug-or-bad-description/
Fix duplicate sample typo
http://hercules.ws/board/tracker/issue-4984-wrong-test-duplicate-npc-sample/
skill script command doesn't has type 4
http://hercules.ws/board/tracker/issue-7565-skill-script-command-invalid-flag/
Merge branch 'master' of http://github.com/HerculesWS/Hercules
updated hercules
enabled custom npcs