Api key authentication dispatcher

This PR closes #13 .