Merge pull request #31 from smee/master

Only recover connection if it was NOT initiated by the application
[feature] add http api methods for parameters (for example federation)