Lectures on the free period action functional