Added frontend angular code to use the REST api. Bug fix for delete REST api