1. A computerized method for optimizing applications within a deployment server in an on-demand application deployment environment, the method comprising: performing a first plurality of application optimizations; following performance of the first plurality of application optimizations, receiving by the deployment server a request from a client for an application; dynamically analyzing capabilities of a device upon which the client is hosted; identifying a generic version of the requested application from a generic application data store that stores at least one generic application written in a device-independent fashion; determining whether a client-optimized application exists for the identified generic version of the requested application and the device upon which the client is hosted; upon determining that a client-optimized application does not exist for the identified generic version of the requested application and the device upon which the client is hosted, performing the following steps: matching the client with at least one device profile stored in a profile data store in the deployment server, the matching being based at least in part upon the capabilities of the device upon which the client is hosted; determining attributes specific to the client based upon the matching device profile; and dynamically generating at runtime a client-optimized application based upon the determined attributes and the identified generic version of the requested application by building a plurality of scripts based upon the determined attributes, processing the plurality of scripts within an optimizer engine configured to remove unneeded classes, methods, and fields from the identified generic version of the requested application, and iteratively executing the plurality of scripts to perform a second plurality of application optimizations; identifying at least one software routine that is to be bundled with the client-optimized application so that the client is able to execute the client-optimized application, and creating a bundle including the identified at least one software routine and the client-optimized application, the bundle adhering to any formatting restriction specified by the client; and conveying the client-optimized application to the client via the bundle.