Split the sources for JS and PHP appropriately
Added support for project-based patterns
Added change history and license to README