BLTI-230

Refactor service code to parse the tool profile into portable utility code 
to share between service and UI.   Took a bit of effort but will
pay off nicely in the long run.  Probably need to find a few more 
theings and generalize into out of Sakai-specific and into the general library.

Got ticked and cleaned up whitespace in two files to make my commit 
more impressive.



git-svn-id: https://source.sakaiproject.org/svn/basiclti/branches/BLTI-230@128397 66ffb92e-73f9-0310-93c1-f5514f145a0a