Entities can now be limited to attacking specific entity types

* Added a type property to entities
* Allowed entities to be limited to attacking only certain entity types, so enemies don't always attack each other.

I didn't commit the recompiled JS file from /dist so you would be less likely to run into merge conflicts. I can commit that file in the future if it makes things easier.