PER-78: moved files to subdirs, added phpdoc documentation, switched to native PHP implemntation of Janus and minor fixes