implement endpoints for getting available devices, update used resource calculation to include pci devices
move localdb to config folder, consolidate vars.js with localdb, move service scripts to service folder