Merge pull request #542 from kanoi/master

API allow multiple commands/replies in one request