#508 Replace control.sh with PHP class

Migration service
#17