Application: re-organize startup

use activate() instead of command_line() for now.  Also, create collection in
standard location (user_data_dir), etc. Base collection path can be overridden
by specifying env var COLLECTION_BASE
Copy imported files into the app data directory

Original filename is saved in the remarks field.