Cleanup imports.
Use ftw.builder.
Add tests for submenu availability.
Merge pull request #9 from 4teamwork/deif-fix-action-visibility

Fix action menu visibility.