Add main dashboard page code

fixes requirejs inclusion in HTML
adds dashboard page javascript code
adds PNotify library for alerts