Permission cache overhaul

* Reworked group permission caching in session data (follow-up to cd45c30ab2dcc44bfbfac283d15bb09b3d4644bc)
 * Removed duplicated information from session data in favor of direct pointer to group settings.
 * Added getters for all group data required to process permissions and related stuff.
 * Added new functions to PC interface and updated calls everywhere.
 * Extracted function to set new group for a player (used at login, group config reload, manual adjustment of group).
 * Moved command permission config parsing to atcommand module.
* Improved dummy map session handling.
 * Since it's required for all map sessions to have a valid group, dummy sessions are now created by a designated function.
 * Updated related code that uses dummy sessions (console `gm use` and script `atcommand`, `useatcmd`).
* Various minor improvements and cleanups.
 * Eliminated some global variables related to loading atcommand permissions for group by passing them directly to function.
 * Moved definition of global array holding PC permission names from header file to source file.
 * Streamlined destuction of atcommands database to use DBApply helper function instead of DBIterator.
 * Replaced hardcoded position of console dummy session with defines from mapindex.h (thx Haruna for pointing it out).
 * Removed fixed length restriction on group names.
Fixed Bug #7486
- Fixed 'close' issues that causes players to stuck.

Signed-off-by: j-tkay <joseph.tk.ea@gmail.com>
Fixed Bug#7601
-Disabled reflect damage cap in pre-re.

Fixed Bug#7606
-Where GC_CREATENEWPOISON is not working properly.

Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Follow up e14ab5561a53bc17c9186a22ecd07060772e6dc6

Fixed Travis, special thanks to Gepard

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7605

For packetver 2009 and below.
http://hercules.ws/board/tracker/issue-7605-problem-with-old-client-versions/

Signed-off-by: shennetsind <ind@henn.et>
New 'close2' warning

When attempting to use this command without a prior dialog window it now will throw a warning and skip halting the script.
Special Thanks to j-tkay, Gepard.

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7586

Added bonuses for items:
- 2917
- 2918
- 2919
- 2920
- 2921
- 2922
- 2923
- 2924
- 2925
- 2926
- 2927
- 2928
Fixed Bug #7602

@homlvup/@homlevel now functions for homun-s
http://hercules.ws/board/tracker/issue-7602-homlevel-homlvup/
Also adjusted @makehomun so that it resurrects the homun when call isn't possible (for when used with -1), prior to this it'd do nothing when homun was dead and not vaporised.

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7453

Added the missing support for conf/battle/gm.conf::atcommand_mobinfo_type on @mobinfo (partially from rathena)
Modified @ii to stop always displaying 'monsters dont drop this item' while the configuration is on.
Special Thanks to Napster.
http://hercules.ws/board/tracker/issue-7453-mobinfo-iteminfo-not-showing-the-correct-information-depending-the-level/
Follow up 2fbec282b9b3eb84f710d5537f70e6bc221187b3
Missing messages.conf entry

Signed-off-by: shennetsind <ind@henn.et>
Travis Modification | Follow up e14ab5561a53bc17c9186a22ecd07060772e6dc6

Disabled the irc channel notifications; it was mostly spamming with duplicate information from the other bot.

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7080

(LG) Overbrand no longer capable of hitting targets with hide (can do so with others e.g. cloak), and it displays a miss when failing to do instead of no feedback (thanks to kisuka for this part).
Special Thanks to gunzlinger, kisuka.
http://hercules.ws/board/tracker/issue-7080-overbrand/

Signed-off-by: shennetsind <ind@henn.et>
Fixed Cash Items Upper values

Issue existed in renewal mode only; Special Thanks to Jezu for bringing it up.

Signed-off-by: shennetsind <ind@henn.et>
Improved packet obfuscation reliability

- Fixes bugreport:7607
  http://hercules.ws/board/tracker/issue-7607-changing-emblem-with-packet-obfuscation-2-unknown-packet/
- Resolved unintended disconnections caused by invalid packets when
  obfuscation is enabled and a fragmented packet is received.
- Improved packet parsing reliability when packet obfuscation is set to
  optional.
Special thanks to serverkid for reporting the issue and Ind for figuring
out the cause and suggesting a solution.

Signed-off-by: Haru <haru@dotalux.com>
Corrected alignment of the Hercules console logo

- This fixes a display issue in terminal emulators that ignore the Esc[K
  ANSI sequence (i.e. GNU screen or tmux, with TERM=screen or
  TERM=screen-256color.)
- In those terminal emulators, the logo background has now a fixed
  width of 72 characters.

Signed-off-by: Haru <haru@dotalux.com>
Fixed MSVC build, follow-up to 38b8bf0

Thanks to Takkun for pointing it out.

Signed-off-by: Haru <haru@dotalux.com>
Fixed @reloadatcommand breaking all @-commands

- Follow-up to e7750ec
- Fixes bugreport:7618
  http://hercules.ws/board/tracker/issue-7618-reloadatcommand/
Thanks to kyeme, Via for the report.

Signed-off-by: Haru <haru@dotalux.com>
Corrected character position de-synchronization when disguised

- Fixes bugreport:7502
  http://hercules.ws/board/tracker/issue-7502-disguise-bug/
Special thanks to bgamez23 for the report

Signed-off-by: shennetsind <ind@henn.et>
Updated AegisNames in the pre-re item DB

- AegisName values taken from Ind's Ultimate Item DB Update (1caae98)
- Fixed bugreport:7600 (thanks to bgamez23)
  http://hercules.ws/board/tracker/issue-7600-error-itemdb-read-duplicate-aegisname/
- Corrected and enabled some previously unavailable/unknown IDs in
  item_packages.conf (both pre-re and re) and item_group.conf (pre-re)

Signed-off-by: Haru <haru@dotalux.com>
Fixed Bug #7605

http://hercules.ws/board/tracker/issue-7605-problem-with-old-client-versions/
Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7610

renewal item db price column fix.
Special Thanks to Muad_Dib for pinpointing the source of the problem and providing a solution, and also providing us with data for 32 new items (some are new headgears :P)
http://hercules.ws/board/tracker/issue-7610-wrong-price-for-iron-ore/

Signed-off-by: shennetsind <ind@henn.et>