Architecture Kata “Long Tweets”

Develop a Twitter service to help sending tweets longer than 140 characters.

If a tweet exceeds 140 chars it will be shortened before posting it on Twitter – and a URL is appended pointing to the full text. This poem:

In Xanadu did Kubla Khan
A stately pleasure-dome decree:
Where Alph, the sacred river, ran

And here were forests ancient as the hills,
Enfolding sunny spots of greenery.
S.T. Coleridge

And here were forests ancient as the hills,
Enfolding sunny spots of greenery.
S.T. Coleridge
would become

In Xanadu did Kubla Khan
A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless ...
http://bit.ly/10XqH12

URLs in the original text should of course be shortened first.

The page the URL at the end of the shortened text is pointing to should show the full text, the sender with her Twitter picture and the sending date:

Variation #1
The original text may contain markdown annotations which are suppressed in the shortened version published on Twitter. But the full text page should render it. (Implement at least # (H1), ## (H2), * (bold), _ (italic).

Level of difficulty

Code Kata Categroies