Fix old code in apps directory.
CA:
Remove code using old ToS API
Move code is pylene-apps repo.