Added cache files, changed all MySQL queries to use caching libs
Added typename autocomplete query
Added Redis cache skeleton
Changed mysql file extension, changed the way masks work in agents queries
Refactored the way queries manage masks