Big commit, refactoring of most of the ressource passing and component hierarchy