Initial code cleanup

I am trying to go through and perform a cleanup of various parts of the stlink codebase.

Start by uniformly indenting all of the source files, removing old and unused code.