Refactor and clean up different coding styles, add additional tests to verify plugins work.

Signed-off-by: Scott M. Likens <scott@likens.us>