Added utils.trim and utils.addClass methods and tests. Added a timeout to set the 'ready' class on a widget after 5s in case a widget is taking too long to load.