New commands & json

added support for more as-db oriented commands. Also applied json
parsing on server reply objects