getInstanceFor() for ChatManager and AccountManager
Fix javadoc warning in xdata.Form
Fix javadoc in MUCInitialPresence.History
Move sample/ into resources/
ChatManager should not throw a NPE if 'from' is null

Fixes SMACK-551
Move host/port from ConnectionConfiguration to XMPPConnection

There semantic is that they now report the host used to establish the
connection. Therefore BOSHConfiguration needs to hostAddresses for
getURI().
Fix error handling in BOSHConnection

getCause() never throws. Not sure why the code was written that
way. Thanks to CSH for reporting.
Improve Exceptions (SMACK-426)
Unify StringUtils.escapeForXML()

Rework StringUtils.escapeForXML() so that it can be used also for
StringUtils.xmlAttribEncodeBinary(). escapeForXML() now uses a
switch/case statement, which should leave the (JIT) compiler more room
for optimizations.

Removing the "do not escape unicode character references", because
this behavior, introduced with
8264ebdfb5d083ec6c907d1ce55012b011f99476, is incorrect.
Move DNS resolving into connect()

It was misplaced in ConnectionConfiguration anyways, as the sole
instantiation of a ConnectionConfiguration should not cause any network
I/O.
Switch jbosh to 0.8.0-SNAPSHOT