Update with patterns from /jquery-boilerplate

Includes better OOP-ness and parameterization of the error-display div.
TODO updates