Pad erase request and add erase helper function

The first patch probably isn't good, but it works. I'm not sure how you want padding done in openant but the erase request needs padding. Feel free to just implement it properly and drop this patch or just tell me how you want it.

The second patch is less obviously wrong.