Restructure libnitro, add doxygen, fix some stuff