Support models and classes derivation
Move class template to erb. Add sample. Use ROXML.