Update AppConfig.php

Make AppConfig class a singleton.