Add generate/check password in lib.security
More work on models
More work on models