Handler server type

This is unfinished and related to issue #22

The goal is to make jsDAV function more like a node module and allow customized functionality without modifying jsDAV.