Restructure angular files and implement ui-routes