Upgrade lager and ranch to the latest stable releases

Our team has been testing against these dependencies for the past few weeks, and there don't seem to be any problems as a result.

Lager, in particular, has some useful features only available in 2.0 (i.e. record pretty printing and tracing) which could be taken in later changes.