Make bower ignore test code
Improve how hResource handles unresolved resources