Reimplement future.successful.

The current implementation is inefficient because it actually schedulea a
Future though it simply returns the passed value. Use Future.successful which
creates a completed Future with the specified result.
Add missing semicolons.