GTD fixes and refactoring

Various fixes and refactoring of teh relation between tags and states.
Also, a better tag alignment on agenda views.