Moved client to public folder.
Started moving components to middleware.