Major Framework Changes

Some restructureing with new loader directive and module directive.