Use curl instead of file_get_contents

Use curl instead of file_get_contents as some hosting environments block remote requests with this method.
Merge pull request #5 from barchard/patch-1

Use curl instead of file_get_contents