Minor refactors (eg: empty -> isEmpty)
Major reformatting - switch to cleaner style and tabs, most .cpp files touched

Signed-off-by: Erik Winn <sidewalksoftware@gmail.com>