Separated (to a reasonable extent, as they both perform similar actions) page management from database management - e.g. db updates are now handled by bearton-db
Updates to UI (unified intro and outro parts of code)