Clean up module and controller definitions
Namespace case files
Refactor modules
Refactor attachment sections into directives