Add EditorConfig and normalize spacing

Standardize on 2 spaces, and replace all tabs except for Makefile.