added logging to blueprints. added REST for user settings update. refactoring. added json validation.