Mourners lined the streets of a West Lothian town to bid farewell to murdered six-year-old Hope Gordon.