[Task] removed unused/unneeded files
[Task] code cleanup
- renamed image.php to captcha.php to reflect what this file actually does
- removed unused JS code
- removed unused table definitions from sql schema
[Task] bring code in par with CGL
renamed consolesync.php to sync.php and removed old sync.php
[Task] protect sync script with token