Fixes gh-178. C code formatting woes

Basically, this is just a proof of concept...

- Uses astyle to enforce the desired style form of k&r, 2 space indents and adds padding around operators for readability.
- Adds `make format` target
- Adds `make test` target

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>