update doc
remove cgi/; move sub-libraries to their own subdir each; mv everything into src/