clean up prototype shorthand

For some reason a few years ago I thought it would be neat to use a shorthand version of prototype to save myself some keystrokes.  That was a cosmetic mistake.  It also breaks ctags.

Also, normalized some whitespace.
move type conversion related code under sub-folder
normalize whitespace, add comments, and do a little house cleaning
Merge pull request #292 from brianc/cleanup

Cleanup