Issues fix for USERGRID-3011.
Added test cases proving issue by deleting entities with preexisting connections.
Added else if instead of separate else block for consistency/efficiency.
Added fix where incoming entities are deleted instead of outgoing entities.
Merge pull request #44 from GERey/USERGRID-3011-delete-exiting-connections

Issues fix for USERGRID-3011.