Return the group if it exists in Roster.createGroup()
Move duplicate sendPacket() code into XMPPConnection
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
 "not connected" is now a checked Exception thrown by sendPacket()

There is a unsolveable race condition between the connection state and
sendPacket(), i.e. the connection could go down, right after the
method calling sendPacket is called, but before sendPacket() is
invoked. Before this change, sendPacket() has thrown an unchecked
IllegalStateException, which could be ignored by the Smack user, who
would also not notice the race condition. We have decided to throw a
checked Exception in this case now, to make the Smack user aware of
this situation.

SMACK-426