Added a basic device model to device/models.py

Changed the way applications are imported in settings.py to reflect
recommendations from the internet.