Add test-lexicon script and fix dependencies

This inclide downgrading shelly to match haskell-platform versions