Model for mobile application partitioning