The serve method now also supports closure

See the following issue: https://github.com/anandkunal/ToroPHP/issues/54.