starting to put in unit tests with nodeunit

Updated some of the asset manager important going forward for loading
screens, needs completing and unit tests.