implement master handler and master task
add test case classes framework for master(implement later)