Moved record_locations to its right place, xtools
Fixed record_locations, and added meta_predicate declaration locations
Fixed alias paths
Improved implementation of called_from