Cleaned up Emitter

* Removed braces on single statement blocks in AnalyzeScalar() as a temporary measure because its length made it hard to overview.
* Moved all fields and constants to the top.
* Removed some doc comments on non-public methods.
* Changed variable names to follow code style.
* Used "var" keyword.
* Removed commented code.
* Added new Todos.