[Core] Configurable actions for tabs switching.

Finally closes #1278.