Extensions to Scala's standard library for multi-threading primitives and reactive programming