Alek Minassian has appeared in court as police are investigating social media posts that may offer clues to his motive for the worst mass killing in Canada in decades.