Let $f$ be a real-valued function such that $4f(x)+xf\left(\tfrac1x\right)=x+1$ for every positive real number $x$. Find $f(2014)$.

Let's think step by step and output the final answer within \boxed{}.
user