Update docs for accessing flash from views

Based on #2765. Add docs for accessing flash from templates in java projects and switch to compiled samples.