Add server tests, cookie/session/flash middleware