Refactored web service

Added test script "srv"