Support for retrieving entity capabilities as per XEP-0115.
Basic unit tests for capability parsing
Merge remote-tracking branch 'origin/capabilities-2'