Moved API authentication to separate module -- branching to API