fluent interface for ->fromArray() and ->save()
fixed some bad code generation in templates, added generic credentials for new modules