Changed error reporting and little changes.

If mojang auth error message is not returned, $autherror takes
curl_error() value;
Added UA
Added test form