added tbl_tracking.lib.php and extracted methods from tbl_tracking.php
Merge pull request #624 from scnakandala/refac_tbl_tracking

Refactoring tbl_tracking.php