Added accessibility module + minor fixes.

 * Cleaned up adding class hooks.
 * Cleaned up handling of Phantom WebKit bug.