added an initial services layer
moved database to it's own module
updated build scripts for device
updated build scripts for device