cleanup, fixes, and forms

- added form validation helper pattern
- fixed* hidden iframe supported ajax form submissions. needs more testing for file uploads.
- note: determine browser support for html5 File apis required for file upload. consider replacing iframe "do-everything" method with pure javascript ajax.
- cleanup template caching function
- fixed* forgetting semi-colons in multi-line [[ inline_js() ]] blocks caused parsing issue
- removed obsolete templating functions