first draft of HTTP MATLAB interface
minor changes