Added secured views, basic layout and document API