Upgrade to Lita 4.0

Modified code to use Lita 4.0 way of doing things so no deprecation
warnings!