Refactor Code

Removed file which were no longer needed
Refactored code to check json output from system of register when a new
application is raised.
Updated endpoints in the run_tests_preview.sh file.