Migrate php resources from AutoReferee
Adjusting the backend scripts, working on identifying teams