Begin refactoring of c2s and sm into their own modules

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Moving all stuff into c2s

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Going on with resolver execution :)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Presence cache should work fine now

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Resolver constant no longer exists

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Solve some redundancy issues with presence broadcasts

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Presence subscriptions working correctly

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Message delivery with confirmations working locally

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Begin to fix some interserver issues

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Consume subscription stanza

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Message authorization process now working

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Use getAttribute to avoid KeyErrors

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
Fix remote presence subscription and authorization

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>