Remove wrong "new" usage.
Fix #126. After method does not work if render method returns nothing.
Rename cookie set parameter to "expires".
Change version to 3.1.0.
Merge branch 'release/3.1.0'