Re-implement DISCARD backend

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Remove commented-out code

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Update changes

Signed-off-by: David Scott <dave.scott@eu.citrix.com>