Added support for SPARK RGB devices

Implemented dynamic attribute lookup so that new attributes can be added to the date base without REST code update

Implemented parameterized SQL queries to prevent injection attacks

Contiuned to strip code from REST interface and relocate to helper functions