add controllers and services directory to public
create directory for public
include controller and services
move  code out of main application file to its own service
move controller code to main
inject controller and service to main module
inject todos service to controller
fix syntax errors