Replace cookieSession with session

closes #1230
- change cookieSession to session
- added session.regenerate for login and logout
- added bookshelf session store
- added session table to database
- added migration to databaseVersion 001
- fixed bugs in migration
- changed tests