A person who, without being obliged to do so, knowingly and usefully manages the business of another, without the knowledge or opposition of the master of that business, is subject, in the performance of the legal and material acts of his management, to all the obligations of an agent.