Converted to scala 2.10.0

Convert to scala 2.10.0 and make Dsl Serializable