Updated libraries, added early handling of Residence plugin.
Merge pull request #74 from Clashnia/hqm

Updated libraries, added early handling of Residence plugin.