Moved API modules to own directory