Wadality: Some internal improvements & bug fixes

Fixed some stuff causing to crush game. Prepared back-end for calculating score and rating.