Vislib docs, error handlers and style refactor

This pull request adds long overdue YUI documentation as well as comments for almost every file, class, method, function, etc in the vislib. This was my first time using YUI to write documentation, so please have a thorough review to assure best practices are being followed.

This pull request also includes some code refactoring in the components directory.