sophia: introduce new repository layout

Introducing sophia.path.

sophia.path will be used as identifying directory
for environment and additional metadata storage (locks, etc).

From now on log.path and db.*.path can be customized
or derived from sophia.path (default) in following manner:

sophia.path/log
sophia.path/database_name