Added a bit of underscorejs and changed bulbs and gateways to being hashes rather than arrays for easier lookups