Changes edit layout and adds publication_date.
Changes publication index view.

Adds sorting and separating by year in publication index.
Changes root path to publication#index.
Adds devise. Also makes starting configure.
Resolves issue with inconsistence in db.

The migrations was rolled back but the base wasn't. So there was
the problem that User was created in base but not by migrations.