introducing lib/apps.php
adding parser lib
redo rest lib
some bugfixing work on ajax/addmanifest.php
debugging addmanifest and addapp further