make copy plugin use localstorage if available
Merge branch 'ticket-484' into testing