Merge pull request #27 from riking/refactoring

Refactor out initConfig method
Put the strings in the same getter. It makes no difference and is cleaner
Check the current disguise is also the current flagwatcher
Combine inventory listener server and client into one listener. Seeing as they don't need to be seperate and actually cuts down on code
Refactor: tryClose() method
Move tryClose() method in order
Apply unused config value, but keep behavior - looks broken
StringBuilder, rename local, javadocs
Turn manual array copies into System.arrayCopy
Simplify redundant statements and casts
For-each loops, remove unused method parameters
TODO entries
Remove useless local