Revise logging.
Add persistence and source configuration for labels loading (issue #27).