Updates

- Start of security framework
- getRecord now has a 'distinct' option
- PhpConsole Updated for error logging