montblanc: limit background apps due to limited ram
picked from http://review.cyanogenmod.org/33402 with small modification