Update index.php

I have added two function to make sure that users have installed GD library and cURL as required in the "server requirements" here:http://docs.pyrocms.com/2.2/manual/reference/server-requirements