Use curl instead of file_get_contents

To avoid problem when allow_url_fopen is set at 0.
Remove try/catch since cURL doesn't throw exception
Merge pull request #11 from j0k3r/patch-1

Use curl instead of file_get_contents