Moved hacks.py into plugins/, fixed bug in plugins loader (issue #547)