Re-normalize repository

According to GitHub Help[1], after changing .gitattributes (as done in
d652d3626f87e8c5dcec617c2349f655d78127dc), the repository should be
re-normalized.

All the files changed by this commit had CRLF line-endings (or a mix of
CRLF and LF). Apparently, they were not fixed in
50b67ffa18431d0c4517359cf3774deb0c70f104.

This change prevents git from showing modified files after cloning the
repository (which should happen for anyone using Windows and
core.autocrlf=true).

[1]: https://help.github.com/articles/dealing-with-line-endings#re-normalizing-a-repository
Avoid NullReferenceException with async methods

When using async methods and loose Mock Behavior, calls to Task methods
give NullReferenceException, since default(Task) is null. Calls to
Task.Wait() and Task<T>.Result should follow the loose behavior: do
nothing and return the default value for T, respectively.

Related to #64.