cleanup index.php file.

Move controllers to service.
Move services creation to provider
Move controllers creation to provider.