Adding attribute for identifying tracking fields in a tracker.  

Also some clean up, moving code into different layers and adding an Exception type for Rest calls.