modified task.sh,sanity.sh for providing a knobs for sanity testing and simple gateway testing

modified task.sh,sanity.sh for providing a knobs for sanity testing and simple gateway testing