change the whole structure to opencart like
add helper and library sub folder under the system folder
modify startup.php file
update engine files: registry, model; loader.php is in working, it has not been finished.
add page parser code for grabbing discount infos