Added server-side code with twitter support.