[TASK] Cleanup code, dynamic memolist namespace support

Cleaned up the main PHP class, added compatibility options,
fixed some major problems with the $recs array, now a different
namespace support can be chosen
[BUGFIX] Immediate store to DB

the persist() call now immediately persists() the changes
to the DB.