Core of the AMFPHP library in order to not to pull ~50MB into a project.