Refactor. Add a new context processor to determine if an UA is mobile