Add Apache Commons dependency, implement equals and hashcode of specifications