Add receipt to device on purchase (bug 981233)

@muffinresearch r for JS? @andymckay r for receipt stuff?