Rename produceError to createError
Fix wrong number of tabs in a line
Add a whitelist of types
Fix a bug and do some refactoring.

-Now the forms can have 'get' methods too.
-Image upload works.
-Fix some XSS problems.
Do resource and method protected instead of private
Combine declaration of arrays, add max and min age to config