Store clipboard contents and history in app state. Fixes #45.