Added a lib folder so we can refactor based on functionality.

Added exports to handle cache clear comunications with wordpress