Move document metadata import from controller to model

and add method to re-import (overwrite) existing data
UI tweaks
Update gitignore
Implement remember token