Support gradle

```bash
$ ./gradlew assembleDebug
```

And I restructured file tree for splitting into sample app and library.