Added Makefiles and fixes for x86

Only included platform.h for ARM targets
*_trigger functions are only used on arm targets
A few other changes for specific benchmarks
Fixed 2dfir correctness

Both image and array were being incorrectly initialised
Now array is just set to surround an image of 1s with 0s
Made makefiles more flexible

Only common.mk needs to be changed to add new architectures
Also added a script for making template makefiles
Added temporary vim files to .gitignore
Made all benchmarks self verify
Standardised indentations and line endings
Moved more platform code from lowpower-framework
Added more binaries to gitignore
Removed large amounts of redundant code

Removed commented out code, and code that isn't being used.
Changed the triggers to be level sensitive

jpallister's patch.
Trigger was originally edge sensitive.
Merge pull request #2 from mageec/self-verify

Programs now self verify
Also removed large amounts of redundant code.