Grids: Finalize code separation, refactor filters and apply coding conventions

iG: removed static/scripts/packed/galaxy.grids.js