switched back the locale

api removed from locale middleware
phone/api/resources.py moved to phone/api.py
device added