code migration to 0.6

I did only the basic changes to adapt the code to Ceylon 0.6. Hope it helps!