Do not have top level element be a table

 * Top level element cannot be a table as it causes issues with resizing.
 * Move getIdOfContainingTable to a service so it can be used by other mix-in directives.