updating docs

 * specified lein 2 in travis.yml
 * added code examples to locale middleware documentation