ticket:3 added migration for stored requests.
ticket:5 added tests
ticket:5 improved templates