nodeattr: moving more from importer/attrs.go

Change-Id: Iebf336c44af77ccbe655aadbe1e57ad339ba5201
twitter: clarify purpose of getTopLevelNode and set titles better

Change-Id: Ie4d88b927ccd63a943afbb220594b6cb0c96a2b9