Validation, etc.

- Added checks to invalid data from showing up in request parameters.
- Added framework to ensure only attributes for various requests
  are included.  I.e., no image size on a non-image search.
- Rejiggered some of the attribute handling.