Work on build processes and code cleanup for webapp and mobileapp