Moved old apngasm core code into this project