Rearranged file structure and added licence info

External libs moved to /lib

All copyright/licence info updated to reflect changes

All files GPL3+ licenced, except for html2pdf external lib, which is LGPL