Separate core functionalities into gradle-core project

Change-Id: Ia843821678fe547882c14b708fd48a99b017d845
240 files changed