Split library into multiple files
Clean AMD boilerplate from build
Add "cleaned up AMD"-cleaing regexp