refactored grunt and split application into multiple apps