Added Tweetlinks and header

Added new file and moved common code to header.