Fixes M4 compatibility

Switched all instances of Future.immedate to Future.value
Merge pull request #86 from toji/futures-fix

Fix M4 compatibility