Parses form and url data into a map for easy access and conversion. Also does validations.