Fix syntax/compile errors in the theme layer
Refactor the user layer, actually store user IDs in encrypted(?) session variables