Document coding style and conventions

Add HACKING file for reference.
Apply coding style to existing code.
Rethink variable naming conventions. (noref_ no more)