included git .gitattributes and update .gitignore

Git ignore rules now cover eclipse, phpstorm and various other junk files.
The new attributes file should ensure consistent file end of lines.
added header guards; minor cleanup

Basic security measure since wordpress is generally included on the web
root; the guards will prevent access from anything but a properly
initialized wordpress (the costant ABSPATH is defined in the wp-config.php
file on the wordpress root).

As part of the cleanup what were previously test template files have been
moved to the default template directory views/form-partials/ to avoid
wasting development time.