Separates the core and api main packages, fixes license header date, and more