Fix bug with application destruction.
Update Mapping string representation.
Fix tests according to updated application and mapping API.
Update bbapp API.