Extracted validation methods so they can be tested via jsunit. Handles query escaping via a workaround. Yay! Checks for empty quotes. Simplified many REs. Allows the '=' sign.