Updates to index.php to match updates with cohesion-core

Main difference is that the ServiceFactory needs the DataAccessFactory to be passed in as a dependancy.
Also the Constructors now take in the ServiceFactory as a dependancy