Fixed some error handling for base.js and added auto retry logic.  Migrated w3c validation into its own api class.