loading pages from extensions

This is an old code formatted by me. Will  fix this across ES code base. https://wso2.org/jira/browse/STORE-569