More work towards Beta 1.

- Style fixes.
- Implemented JSPalette for label creation & editing.
- MISC. PHP fixes.
Gitignore