make dcap.py a standalone appication

door url takes root path as well