Updated Input Processing Code

Made major changes to input processing code to take advantage of
features like class cloning that were made impossible by my previous,
rigid methods. This required changes to other browser-accessible code
files, but unfortunately many of these changes are obscured by
Netbeans’ default formatting, which I applied to all files to ease
find/replace operations.