Adding form validation based on http://jqueryvalidation.org/

Some native HTML5 form validation features included also.
Cleaned code, removed excess logging
Renamed and moved some files,
added local path in main.js as fix for cross domain policy
Merge pull request #1 from funkygibbing/master

Adding form validation based on http://jqueryvalidation.org/