Add installing of npm and bower packages

- Added ability to add custom defined middleware