Add some explicit types.
Fix some bad strings.
Fix a permissions issues blocking server commands.