reorganize compiler code

along the way, improve the JavaScript we output somewhat:
- semicolons in more places
- indentation in more places
minor cleanup
improve indentation and semicolons of generated code
improve spacing in generated code
keep trivial functions on one line
use camel-case identifiers for everything

it's the JavaScript way
Merge pull request #45 from NetLogo/compiler-reorg

reorganize compiler code and improve generated code