Minor refactoring of core domain model.
Added unit-level tests around SecurityOrder to SecurityOrderTest.
Removed unnecessary equals() and hashCode() methods from SecurityOrder.