Initial backend code.
Backup.
Add git ignore.
Cleaned up for commit.
Added gitignore files for cache and logs.