implemented frontend templates and controllers

also added backend resource stub