Example application using Apache Shiro with Scalatra.