conections and messages API improvements
Updated docs, minor bugfixes