Refactor web console

Basic web console features. Missing finalize flow, resuming, skipping and filtering.

Also add Persistence layer between the core logic and persistence adapter.