URL Validation and parsing

Building out the URL validation and parsing system as per erics
request.

Also updated the javascript post on the checkboxes as .val() was always
evaluating "on" even when not checked.

Created a test.php file for sandbox testing.