Error fixes, unittests, travis, and bower script