Various fixes

* Declare anyins-mode-map at top-level
* Convert lambdas to interactive commands
* Declare buffer-local variables at top-level
* Use more standard 'y' and '!' keybindings rather than 'k' and 's'

In connection with https://github.com/milkypostman/melpa/pull/1259