Change how routing works and add some sane defaults. Also add a localdb example