Use Angular UI router in the popup

This branch converts the popup to use Angular UI router instead for the "tabs". This allows using the `resolve` feature for the tab controllers.
It also adds a "loading mask" that is shown on UI state transitions.
The branch does not contain other actual features.