St Johnstone have given midfielder Chris Millar a two-year contract extension as manager Steve Lomas plans ahead for next season.