Codebase improvements, fix #8 #12

1) Fixed misc bugs in product submission
2) Add support for product submission to the online database
3) Cleaned up codebase with unnecessary classes
4) Minor UI fixes