Core pr 5

Added new SMS field to user profile
Added library category and block codes for users.
Minor bugs and missing comments.
See comment regarding openruth.