Converted tabs to spaces: JavaScript and CSS files
Lots of code simplifications in the models.

...done mostly by simplifying conditionals.
Extracted rule parser to new non-AR static model.
Continued: Extracting parser object.

This is a first important step regarding issue #6.