added AddEditEntity class

1. Put both add and edit functionality in one method, addEdit object
should be initialized with a boolean indicating whether the record is
to be updated
2. Made some minor changes to DataRequest