Added new config.js to server
Added function to get templates and some other improvements on admin.js