Support Advanced SQL functions: LIMIT, ORDER BY, GROUP BY, and better sanitization scheme

This pull request adds:
- Support for advanced SQL conditons: limit, order by, group by, select distinct.
- Mocha.js tests for parser.js, found in parser.spec.js
- Exposes database sanitize routine, and removes the in-house escapes

More to follow