Refactoring Web Service files -- work in progress

Updating and normalizing command format. The demo has not been brought
up to use these new functions and may not work.

Session.php -- refactored be more inline with the appropriate web method
study.php -- added get for study config. Still have more functionality
to add
db_def_and_init.sql -- added taskId to session log for future
functionality.